package cn.marinda.resturants.entity;

import cn.marinda.resturants.annotation.AdministratorAnnotation;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;
import cn.marinda.resturants.entity.Roles;

/** 管理员实体类
 * @author Marinda
 * @date 2021/11/15
 */
@Data
@AdministratorAnnotation
@TableName("r_administrator")
public class Administrator extends Roles {
    @TableId(value = "uid",type = IdType.UUID)
    private String uid;
    private String type;

    @Version
    private int version;
}
